package cn.bingo.yunsj.utils;

import java.util.Calendar;
import java.util.Date;

public class DateUtils {

    public static Long between_days(Date old){
        Calendar cal = Calendar.getInstance();
        cal.setTime(old);
        long time1 = cal.getTimeInMillis();
        cal.setTime(new Date());
        long time2=cal.getTimeInMillis();
        long between_days=(time2-time1)/(1000*3600*24);
        return between_days;
    }
}
